package com.dj.msgtable.serviceimpl;


import com.dj.msgtable.dao.ArticleMapper;
import com.dj.msgtable.dao.UserMapper;
import com.dj.msgtable.entity.Article;
import com.dj.msgtable.entity.User;
import com.dj.msgtable.service.ArticleService;
import com.dj.msgtable.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

@Service
public class ArticleServiceImpl implements ArticleService {


    @Autowired
    ArticleMapper am;

    @Override
    public boolean addArticle(Article article) {
        return am.addArticle(article);
    }

    @Override
    public List<Article> selectArticle() {
        return am.selectArticle();
    }
}
